package com.olddriver.crm.mapper;

import com.olddriver.crm.domain.Compensation;
import com.olddriver.crm.domain.Employee;
import com.olddriver.crm.query.ClaimsQueryObject;
import com.olddriver.crm.query.CompensationQueryObject;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface CompensationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Compensation record);

    Compensation selectByPrimaryKey(Long id);

    void  updateTotalFee(@Param("totalFee") BigDecimal totalFee , @Param("sn") String  sn);

    List<Compensation> selectAll();

    int updateByPrimaryKey(Compensation record);


    int queryTotal(CompensationQueryObject qo);

    List<Employee> queryRows(CompensationQueryObject qo);


    Compensation getCompensationByAccId(Long id);
}
